package com.falm.maker.entity.enums;

/**
 * 文件生成类型
 */
public enum GenerateTypeEnum {
    
    DYNAMIC("dynamic", "动态生成", "DynamicFileGenerator"),
    STATIC("static", "静态生成", "StaticFileGenerator");

    /**
     * 生生成类型
     */
    private String generateType;

    /**
     * 描述
     */
    private String description;

    /**
     * 类名
     */
    private String clazz;
    
    GenerateTypeEnum(String generateType, String description, String clazz) {
        this.generateType = generateType;
        this.description = description;
        this.clazz = clazz;
    }

    public static GenerateTypeEnum codeOf(String generateType) {
        for (GenerateTypeEnum value : GenerateTypeEnum.values()) {
            if (value.generateType.equals(generateType)) {
                return value;
            }
        }
        return null;
    }

    public String getGenerateType() {
        return generateType;
    }

    public String getDescription() {
        return description;
    }

    public String getClazz() {
        return clazz;
    }
}
